home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12237 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.gate.net!bftsi0!joe
  2. From: joe@bftsi0.UUCP (Joe Foster of Borg)
  3. Newsgroups: comp.lang.c++,comp.unix.programmer,comp.os.linux.misc
  4. Subject: Re: ofstream
  5. Message-ID: <6384@bftsi0.UUCP>
  6. Date: 18 Mar 96 21:20:47 GMT
  7. References: <4iju9a$m68@tic.sm.dsi.unimi.it>
  8. Followup-To: comp.lang.c++
  9. Organization: Barbara Foster Tax Service, Inc.
  10.  
  11. In article <4iju9a$m68@tic.sm.dsi.unimi.it>, moreld@dsi.unimi.it (~ZIO BUDDA~) writes:
  12.  
  13. > hi, this is my question :
  14.  
  15. > why if i write a line like
  16. > ofstream ("PIPPO")
  17. > the g++ 2.7.0 not return any warning or error?>??
  18.  
  19. > is this correct in c++???
  20.  
  21. You should probably get a warning like "unused result of
  22. conversion", but maybe you need to check the warning level. Maybe
  23. you have warnings turned off? The code when executed will create
  24. a zero-byte file named PIPPO.
  25.  
  26. > tnx in advance and sorry for my bad english
  27.  
  28. No problem. Humans don't use YACC as their parsers. :-)
  29.  
  30. -- 
  31. Joe Foster (joe@bftsi0.gate.net or joe%bftsi0@uunet.uu.net)
  32. WARNING: I cannot be held responsible for the above        They're   coming  to
  33. because  my cats have  apparently  learned to type.        take me away, ha ha!
  34.